package com.zy.algorithm.sort.shellsort;

import com.zy.algorithm.sort.SortUtils;
import com.zy.algorithm.curtain.IScreenBean;
import com.zy.utils.ActivityUtils;

import java.util.List;

public class ShellInsertionSortV1Fragment extends ShellInsertionSortBaseFragment {

    @Override
    protected List<IScreenBean> getScreenBeanList() {
        if (ActivityUtils.isScreenOrientationPortrait(getContext())) {
            return SortUtils.shellSortScreenV2(10);
        }
        return SortUtils.shellSortScreenV2(16);
    }

    private static final String title = "希尔排序";
    private static final String enterTitle = "希尔排序\n(缩小增量排序)";
    private static final String dataDes = "";

    @Override
    protected String getDataDes() {
        return dataDes;
    }

    @Override
    protected String getTitle() {
        return title;
    }

    @Override
    protected String getEnterTitle() {
        return enterTitle;
    }
}
